﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xiaov.SmartWeb.Infrastructure.Cache
{
    public interface ICache
    {
        object GetCache(string CacheKey);

        void SetCache(string CacheKey, object objObject);

        void SetCache(string CacheKey, object objObject, DateTime absoluteExpiration, TimeSpan slidingExpiration);

        /// <summary>
        /// 移除单个缓存
        /// </summary>
        /// <param name="CacheKey"></param>
        void RemoveCache(string CacheKey);

        /// <summary>
        /// 移除所有缓存
        /// </summary>
        void RemoveCache();
    }
}
